
import "./all.js";

tailwind.config = {
    theme: {
        extend: {
            colors: {
                primary: "#7289DA",
                secondary: "#99AAB5",
                accent: "#F47FFF",
                dark: "#2C2F33",
                light: "#FFFFFF",
                "gray-light": "#99AAB5",
                "gray-dark": "#23272A",
            },
            fontFamily: {
                q: ['"Comic Sans MS"', '"Bubblegum Sans"', "cursive"],
            },
            animation: {
                float: "float 3s ease-in-out infinite",
                wiggle: "wiggle 1s ease-in-out infinite",
                "bounce-slow": "bounce 3s infinite",
                "pulse-slow": "pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite",
                "spin-slow": "spin 10s linear infinite",
            },
            keyframes: {
                float: {
                    "0%, 100%": { transform: "translateY(0)" },
                    "50%": { transform: "translateY(-10px)" },
                },
                wiggle: {
                    "0%, 100%": { transform: "rotate(-3deg)" },
                    "50%": { transform: "rotate(3deg)" },
                },
            },
        },
    },
};

// 表单切换逻辑
// document.addEventListener("DOMContentLoaded", function() {
//   const loginBtn = document.getElementById("loginBtn");
//   const registerBtn = document.getElementById("registerBtn");
//   const loginForm = document.getElementById("loginForm");
//   const registerForm = document.getElementById("registerForm");

//   loginBtn.addEventListener("click", function() {
//     loginBtn.classList.add("bg-primary", "text-white");
//     loginBtn.classList.remove("bg-transparent", "text-light");
//     registerBtn.classList.add("bg-transparent", "text-light");
//     registerBtn.classList.remove("bg-primary", "text-white");

//     loginForm.classList.remove("hidden");
//     registerForm.classList.add("hidden");
//   });

//   registerBtn.addEventListener("click", function() {
//     registerBtn.classList.add("bg-primary", "text-white");
//     registerBtn.classList.remove("bg-transparent", "text-light");
//     loginBtn.classList.add("bg-transparent", "text-light");
//     loginBtn.classList.remove("bg-primary", "text-white");

//     registerForm.classList.remove("hidden");
//     loginForm.classList.add("hidden");
//   });

//   // 表单提交反馈

// });

